package com.kang.common.comm;

public enum ResultCodeEnum {

    SUCCESS("200", "request success"),
    FAIL("400","request fail"),
    UNAUTH("401", "url forbidden"),
    FORBIDDEN("403", "user unauthorized"),
    NOT_FOUND("404", "not found"),
    SERVER_ERROR("500", "server error");


    private final String code;
    private final String message;

    ResultCodeEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode(){
        return this.code;
    }

    public String getMessage(){
        return this.message;
    }

}
